﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    public partial class XxlJobInfo
    {
        public int Id { get; set; }
        /// <summary>
        /// 执行器主键ID
        /// </summary>
        public int JobGroup { get; set; }
        public string JobDesc { get; set; } = null!;
        public DateTime? AddTime { get; set; }
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string? Author { get; set; }
        /// <summary>
        /// 报警邮件
        /// </summary>
        public string? AlarmEmail { get; set; }
        /// <summary>
        /// 调度类型
        /// </summary>
        public string ScheduleType { get; set; } = null!;
        /// <summary>
        /// 调度配置，值含义取决于调度类型
        /// </summary>
        public string? ScheduleConf { get; set; }
        /// <summary>
        /// 调度过期策略
        /// </summary>
        public string MisfireStrategy { get; set; } = null!;
        /// <summary>
        /// 执行器路由策略
        /// </summary>
        public string? ExecutorRouteStrategy { get; set; }
        /// <summary>
        /// 执行器任务handler
        /// </summary>
        public string? ExecutorHandler { get; set; }
        /// <summary>
        /// 执行器任务参数
        /// </summary>
        public string? ExecutorParam { get; set; }
        /// <summary>
        /// 阻塞处理策略
        /// </summary>
        public string? ExecutorBlockStrategy { get; set; }
        /// <summary>
        /// 任务执行超时时间，单位秒
        /// </summary>
        public int ExecutorTimeout { get; set; }
        /// <summary>
        /// 失败重试次数
        /// </summary>
        public int ExecutorFailRetryCount { get; set; }
        /// <summary>
        /// GLUE类型
        /// </summary>
        public string GlueType { get; set; } = null!;
        /// <summary>
        /// GLUE源代码
        /// </summary>
        public string? GlueSource { get; set; }
        /// <summary>
        /// GLUE备注
        /// </summary>
        public string? GlueRemark { get; set; }
        /// <summary>
        /// GLUE更新时间
        /// </summary>
        public DateTime? GlueUpdatetime { get; set; }
        /// <summary>
        /// 子任务ID，多个逗号分隔
        /// </summary>
        public string? ChildJobid { get; set; }
        /// <summary>
        /// 调度状态：0-停止，1-运行
        /// </summary>
        public byte TriggerStatus { get; set; }
        /// <summary>
        /// 上次调度时间
        /// </summary>
        public long TriggerLastTime { get; set; }
        /// <summary>
        /// 下次调度时间
        /// </summary>
        public long TriggerNextTime { get; set; }
    }
}
